<?php


namespace app\controller\admin\verify;


use app\controller\admin\BaseAdminController;
use app\model\config\RegionModel;
use app\service\utils\RegionService;

class VerifyCartCityController extends BaseAdminController
{

    function setModel()
    {
        // TODO: Implement setModel() method.
    }

    function setWithModel()
    {
        // TODO: Implement setWithModel() method.
    }

    function setSearch()
    {
        // TODO: Implement setSearch() method.
    }

    function setSort()
    {
        // TODO: Implement setSort() method.
    }

    public function getCityArr()
    {
        try {
            $arr = RegionModel::where('level', 2)->field('id,name')->select()->toArray();
            return $this->success($arr);
        } catch (\Exception $exception) {
            return $this->error($exception);
        }
    }
}